package com.bishe.serivce.Impl;

import com.bishe.dao.BusinessDao;
import com.bishe.pojo.Business;
import com.bishe.serivce.IBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 业务接口实现
 * @date 2022/03/02 36:11:09
 */
@Service
public class BusinessServiceImpl implements IBusinessService {
    @Autowired
    private BusinessDao businessDao;

    @Override
    public List<Business> findAll() {
        return businessDao.findAll();
    }

    @Override
    public void save(Business business) {
        businessDao.save(business);
    }

    @Override
    public void updateById(Business business) {
        businessDao.updateById(business);
    }

    @Override
    public void deleteById(String id) {
        businessDao.deleteById(id);
    }
}